package com.itheima.day13work1;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        //创建阻塞队列
        ArrayBlockingQueue<String> abq=new ArrayBlockingQueue<String>(3);
        Fooder f=new Fooder(abq);
        Cooker c=new Cooker(abq);
        Thread  t=new Thread(f);
        Thread t1=new Thread(c);
        t.start();
        t1.start();
    }
}
